﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using CMSMVC4;

namespace CMSMVC4.Areas.Admin.Models
{
    public class ContactModels
    {

        //[Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
        //    ErrorMessageResourceName = "CompanyRequired")]
        //public string CompanyEn { get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "CompanyRequired")]
        public string CompanyVi{ get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "PhoneRequired")]
        public string Phone { get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "FaxRequired")]
        public string Fax { get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "EmailRequired")]
        [RegularExpression("^([\\w-\\.])+@([\\w])+\\.(\\w){2,6}(\\.([\\w]){2,4})*$",
            ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "EmailInvalid")]
        public string Email { get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "WebsiteRequired")]
        public string Website { get; set; }

        [AllowHtml]
        public string Map { get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "AddressRequired")]
        public string AddressEn { get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "AddressRequired")]
        public string AddressVi { get; set; }

        public string DisEn { get; set; }

        public string  DisVi { get; set; }
    }
}